package com.shiminghui;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();

        boolean result = a==6 || b==6 || (a+b)%6==0;
        System.out.println(result);

        int c = 300;
        System.out.println((byte)c);//强转就是删除前面的位数

        System.out.println(c>>2);
    }
}
